package ru.niir.goodfil.audit.domain;

import ru.niir.goodfil.audit.domain.enums.OrderItemUIEventType;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * Событие, связанное с добавлением/удалением позиций в заказ (на уровне UI).
 */
@Entity
public class OrderItemUIEvent extends Event {
    @Enumerated(EnumType.STRING)
    private OrderItemUIEventType type;

    @Column(length = 10)
    private String goodId;

    @Column(length = 30)
    private String goodCode;

    @Column(length = 10)
    private String count;

    @Column(length = 10)
    private String price;


    @Column(length = 10)
    private String orderId;

    @Column(length = 10)
    private String clientId;

    @Column(length = 100)
    private String clientName;

    @Column(length = 10)
    private String managerId;

    @Column(length = 100)
    private String managerName;

    @Column(length = 10)
    private String c1Num;

    @Column(length = 50)
    private String creationDate;

    @Column(length = 50)
    private String deliveryDate;

    @Column(length = 500)
    private String orderComment;

    @Column(length = 50)
    private String orderSum;

    public OrderItemUIEventType getType() {
        return type;
    }

    public void setType(OrderItemUIEventType type) {
        this.type = type;
    }

    public String getGoodId() {
        return goodId;
    }

    public void setGoodId(String goodId) {
        this.goodId = goodId;
    }

    public String getGoodCode() {
        return goodCode;
    }

    public void setGoodCode(String goodCode) {
        this.goodCode = goodCode;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getManagerId() {
        return managerId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public String getC1Num() {
        return c1Num;
    }

    public void setC1Num(String c1Num) {
        this.c1Num = c1Num;
    }

    public String getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(String creationDate) {
        this.creationDate = creationDate;
    }

    public String getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(String deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public String getOrderComment() {
        return orderComment;
    }

    public void setOrderComment(String orderComment) {
        this.orderComment = orderComment;
    }

    public String getOrderSum() {
        return orderSum;
    }

    public void setOrderSum(String orderSum) {
        this.orderSum = orderSum;
    }
}
